function rem() {
    document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + "px";
}

window.onresize = rem;
rem();


